<?php if(!defined('IN_APP')) exit('Access Denied');?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
	<meta charset="UTF-8">
	<title>我的</title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
	<meta name="format-detection" content="telephone=no,email=no,adress=no" />
	<meta name="apple-mobile-web-app-capable" content="yes" />  
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<link rel="stylesheet" href="<?php echo THEME_PATH;?>styles/swiper.min.css">
	<link rel="stylesheet" href="<?php echo THEME_PATH;?>styles/reset.css">
	<link rel="stylesheet" href="<?php echo THEME_PATH;?>styles/common.css">
	<link rel="stylesheet" href="<?php echo THEME_PATH;?>styles/style.css?v=1019">	
</head>
<body>
	<!-- S header -->
	<header>
		<h1>我的</h1>
	</header>
	<!-- E header -->
	<!-- S 用户信息 -->
	<dl class="my-user-wrap">
		<dt><img src="<?php echo $user_info['photo'] ? $user_info['photo'] : THEME_PATH.'images/user-my.png'; ?>" alt="" width="50" height="50"></dt>
		<dd><?php echo $user_info['real_name'] ? $user_info['real_name'] : $user_info['nickname'] ; ?><span><?php echo $user_info['username']; ?></span></dd>
	</dl>
	<!-- E 用户信息 -->
	<!-- S 余额-升值链 -->
	<ul class="my-cny-gf flex">
		<li>
			<h3 class="tit">余额(CNY)</h3>
			<p class="num"><?php echo $user_info['balance']; ?></p>
			<div class="flex flex-pack-justify links">
				<a href="/index.php?m=user&c=home&a=chongzhi">
					<img src="<?php echo THEME_PATH;?>images/icon-cz.png" alt="" width="15" height="15">充值
				</a>
				<a href="/index.php?m=user&c=home&a=tixian">
					<img src="<?php echo THEME_PATH;?>images/icon-tx.png" alt="" width="15" height="15">提现
				</a>
			</div>
		</li>
		<li>
			<h3 class="tit">升值链(GF)</h3>
			<p class="num"><?php echo $user_info['upvaluation']; ?></p>
			<div class="flex flex-pack-justify links">
				<a href="/index.php?m=user&c=home&a=upvaluation">
					<img src="<?php echo THEME_PATH;?>images/icon-dh.png" alt="" width="15" height="15">兑换
				</a>
				<a href="/index.php?m=user&c=home&a=upvaluation1">
					<img src="<?php echo THEME_PATH;?>images/icon-hs.png" alt="" width="15" height="15">回收
				</a>
			</div>
		</li>
	</ul>
	<!-- E 余额-升值链 -->

	<ul class="my-centre-item">
		<li>
			<a href="<?php echo '/index.php?m=user&c=home&a=invite'; ?>" class="flex flex-pack-justify">
				<div>
					<img src="<?php echo THEME_PATH;?>images/icon-my1.png" alt="" width="16" height="16" class="icon-my">
					我的推广
				</div>
				<div class="right"><i class="iconfont">&#xe6a0;</i></div>
			</a>
		</li>
		<li>
			<a href="<?php echo '/index.php?m=user&c=home&a=team' ?>" class="flex flex-pack-justify">
				<div>
					<img src="<?php echo THEME_PATH;?>images/icon-my2.png" alt="" width="16" height="16" class="icon-my">
					我的团队
				</div>
				<div class="right"><i class="iconfont">&#xe6a0;</i></div>
			</a>
		</li>
	</ul>
	<ul class="my-centre-item">
		<li>
			<a href="javascript:;" class="flex flex-pack-justify">
				<div>
					<img src="<?php echo THEME_PATH;?>images/icon-my3.png" alt="" width="16" height="16" class="icon-my">
					交易保证金
				</div>
				<div class="right">￥<?php echo $sum ? $sum : 0; ?>元</div>
			</a>
		</li>
		<li>
			<a href="/index.php?m=user&c=home&a=wallet_index" class="flex flex-pack-justify">
				<div>
					<img src="<?php echo THEME_PATH;?>images/icon-my4.png" alt="" width="16" height="16" class="icon-my">
					钱包
				</div>
				<div class="right"><i class="iconfont">&#xe6a0;</i></div>
			</a>
		</li>
	</ul>
	<ul class="my-centre-item">
		<li>
			<a href="/index.php?m=user&c=home&a=personal_info" class="flex flex-pack-justify">
				<div>
					<img src="<?php echo THEME_PATH;?>images/icon-my5.png" alt="" width="16" height="16" class="icon-my">
					个人信息
				</div>
				<div class="right">
					<?php if($user_info['if_complete'] ==1): ?>
						已完善
					<?php else :?>
						未完善
					<?php endif ?>
					<i class="iconfont">&#xe6a0;</i></div>
			</a>
		</li>
		<li>
			<a href="/index.php?m=user&c=home&a=check_if_renzheng" class="flex flex-pack-justify">
				<div>
					<img src="<?php echo THEME_PATH;?>images/icon-my6.png" alt="" width="16" height="16" class="icon-my">
					身份认证
				</div>
				<div class="right">
				<?php if($user_info['if_identification'] ==1): ?>
						未上传
					<?php elseif($user_info['if_identification'] == 2) :?>
						审核中
					<?php elseif($user_info['if_identification'] == 3) :?>
						已认证
					<?php elseif($user_info['if_identification'] == 4) :?>
						已驳回
					<?php endif ?>	
				<i class="iconfont">&#xe6a0;</i></div>
			</a>
		</li>
	</ul>
	<ul class="my-centre-item">
		<li>
			<a href="/index.php?m=user&c=home&a=upd_password" class="flex flex-pack-justify">
				<div>
					<img src="<?php echo THEME_PATH;?>images/icon-my7.png" alt="" width="16" height="16" class="icon-my">
					密码安全
				</div>
				<div class="right"><i class="iconfont">&#xe6a0;</i></div>
			</a>
		</li>
		<li>
			<a href="/index.php?m=user&c=home&a=help" class="flex flex-pack-justify">
				<div>
					<img src="<?php echo THEME_PATH;?>images/icon-my8.png" alt="" width="16" height="16" class="icon-my">
					帮助中心
				</div>
				<div class="right"><i class="iconfont">&#xe6a0;</i></div>
			</a>
		</li>
		<li>
			<a href="/index.php?m=user&c=home&a=about_us" class="flex flex-pack-justify">
				<div>
					<img src="<?php echo THEME_PATH;?>images/icon-my9.png" alt="" width="16" height="16" class="icon-my">
					关于我们
				</div>
				<div class="right"><i class="iconfont">&#xe6a0;</i></div>
			</a>
		</li>

	<!-- <li>
			<a href="/index.php?m=user&c=home&a=notice" class="flex flex-pack-justify">
				<div>
					<img src="<?php echo THEME_PATH;?>images/icon-my9.png" alt="" width="16" height="16" class="icon-my">
					公告
				</div>
				<div class="right"><i class="iconfont">&#xe6a0;</i></div>
			</a>
		</li> -->


	</ul>

	<!-- S 公告 -->
	<div class="notice-wrap flex my-notice-wrap">
		<i class="iconfont">&#xe69c;</i>
		<div id="announcement" class="swiper-container flex-1">
			<div class="swiper-wrapper">
				
				
						<div class="swiper-slide">
							<a href="/index.php?m=user&c=home&a=notice"> 系统公告
								
								</a>
						</div>
			</div>
		</div>
		<i class="iconfont">&#xe6a0;</i>
	</div>
	<!-- E 公告 -->
	<a href="/index.php?m=user&c=public&a=logout" class="btn quit-btn">退出</a>
	<!-- S footer -->
	<div class="footBox">
		<footer>
			<a href="/index.php?m=user&c=trade&a=index&type=buy">
				<i class="iconfont">&#xe69d;</i>
				<span>交易所</span>
			</a>
			<a href="/index.php?m=user&c=exchange&a=index">
				<i class="iconfont">&#xe69a;</i>
				<span>兑换</span>
			</a>
			<a href="/index.php?m=user&c=goods&a=index">
				<i class="iconfont">&#xe69e;</i>
				<span>商城</span>
			</a>
			<a href="/index.php?m=user&c=order&a=index">
				<i class="iconfont">&#xe69b;</i>
				<span>订单</span>
			</a>
			<a href="/index.php?m=user&c=home&a=index" class="cur">
				<i class="iconfont">&#xe6a3;</i>
				<span>我的</span>
			</a>
		</footer>
	</div>
	<!-- E footer -->


	<script src="<?php echo THEME_PATH;?>js/jquery-1.8.3.min.js"></script>
	<script src="<?php echo THEME_PATH;?>js/swiper.min.js"></script>
	<script src="/statics/js/layer/layer.js"></script>
	<script>
		//公告
		// var announcementSwiper = new Swiper('#announcement', {
		//         direction: 'vertical',
		// 		loop: true,
		//         autoplay:3000
		//     })
			
	// $('.quit-btn').click(function(){
	// 	layer.confirm('确定要退出?', {btn: ['是','否'] }, function(index){
	// 			$.ajax({
	// 				url:"/index.php/?m=user&c=exchange&a=buy",
	// 				type:'post',
	// 				data:{gf:gf,beans:beans},
	// 				dataType:'json',
	// 				success:function(data){
	// 					if(data.status ==0){
	// 						layer.msg(data.info);
	// 					}else{
						
	// 						$("#shade,#success").show();
	// 						// layer.close(index);
	// 						return;
	// 					}
	// 				}
	// 			});
	// 			layer.close(index);
	// 		});
	// })
	</script>
</body>
</html>